<%@ page import="javax.swing.text.Document"%>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
<title>Login & Register</title>
<link type="text/css" href="${pageContext.request.contextPath }/pageDisplay/css/main.css" rel="stylesheet" />
<script type="text/javascript" src="js/form.js"></script>
</head>
<body class="main">
<%@include file="../pageDisplay/head.jsp" %>
<%String switch_value = request.getParameter("switch"); %>
<div class="content">
<table>
	<tr>
		<td><a href="${pageContext.request.contextPath}/login&register/login&register.jsp">登录</a></td>
		<td><a href="${pageContext.request.contextPath}/login&register/login&register.jsp?switch=1">注册</a></td>
	</tr>
	<tr>
		<%if (switch_value != null){ %>
			<%@include file="register.jsp" %>
		<%} else { %>
			<%@include file="login.jsp" %>
		<%} %>
	</tr>
</table>
</div>
<%@include file="../pageDisplay/foot.jsp" %>
</body>
</html>